package com.zjxd.business.web.utils;

public class IDUtils {
	
	private static int length = 4;
	
	
	public static String getID(String id) {
		StringBuffer buffer = new StringBuffer();
		Long id_tmp = Long.valueOf(id);
		long id_me = id_tmp+1;
		String call_id = String.valueOf(id_me);
		if(call_id.length()<4) {
			int no = IDUtils.length - call_id.length();
			for (int i = 0; i < no; i++) {
				buffer.append("0");
			}
			buffer.append(call_id);
		}
		return buffer.toString();
	}
}
